import type { ParamsData } from '@/types/home'
import type { HotResult } from '@/types/hot'
import { http } from '@/utils/http'

type HotParams = ParamsData & { subType?: string }

export const getHotRecommendAPI = (url: string, data?: HotParams) =>
  http<HotResult>({
    method: 'GET',
    url,
    data,
  })
